package org.crmsystem.service;

import org.crmsystem.model.Product;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/8/8.
 */
public interface IProductService {
    /**
     * <!--根据主键id删除产品-->
     *
     * @param id the id
     * @return the int
     */
    int deleteByPrimaryKey(Integer id);

    /**
     *  <!--插入产品-->
     *
     * @param record the record
     * @return the int
     */
    int inserts(Product record);

    /**
     * <!--根据主键id查找产品-->
     *
     * @param id the id
     * @return the product
     */
    Product selectByPrimaryKey(Integer id);
    /**
     * <!--查找所有产品-->
     *
     * @param
     * @return the product
     */
    List select();

    /**
     * <!--查找产品总记录-->
     *
     * @param
     * @return the product
     */
    int selectByTermsTnum();

    /**
     * <!--多条件查找产品-->
     *
     * @param
     * @return the product
     */
   List selectByTerms(Map record);

    /**
     * <!--根据主键id选择性修改产品-->
     *
     * @param record the record
     * @return the int
     */
    int updateByPrimaryKeySelective(Product record);
}
